package org.example.service;

import org.example.pojo.Order;
import org.example.pojo.Product;

import java.util.List;
import java.util.concurrent.Future;

public interface OrderService {
    Future<Order> getFutureOrderInfo(Integer orderNo);

    List<Order> getOrderInfoList(List<Integer> orderNos);
    List<Product> getProductList();

    Order getOrderInfo(Integer orderNo);

    //    @Cacheable(cacheNames = {"byId"},key = "#orderNo")
    Order getOrderInfo2(Integer orderNo);
}
